package com.hysf.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "product")
public class Product {
	private String pname;
	private Double price;
	private Boolean isUsed;
	private Date manDate;
	private Map<String,String> attributes;
	private Address address;
	private List<String> types;
}

@Data
class Address {
	private String province;
	private String city;
}